package com.ocom.devicehttp.feign.machine;

import com.ocom.common.constant.AccessServiceUrl;
import com.ocom.common.constant.AiotUrl;
import com.ocom.common.constant.SrvpAccessDeviceUrl;
import com.ocom.common.resp.RespMachMessage;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(value = "aiot")
public interface MachineFeignService {

    //获取设备同步信息标志
    @GetMapping(AiotUrl.URL_Aiot_GetDeviceState)
    public RespMachMessage getDeviceState(@RequestParam("machNo")String machNo);

    @GetMapping(AiotUrl.URL_Aiot_GetDeviceFlag)
    public RespMachMessage getDeviceFlag(@RequestParam("machNo")String machNo,@RequestParam("versionCode")String versionCode);

}
